<template>
  MyRight组件
</template>

<script setup>
import { onMounted,onUnmounted,onActivated, onDeactivated } from 'vue'
onMounted(() => {
  console.log('MyRight组件被挂载了')
})
onUnmounted(() => {
  console.log('MyRight组件被销毁了')
})
onActivated(() => {
  console.log('MyRight组件被激活了')
})
onDeactivated(() => {
  console.log('MyRight组件被缓存了')
})
</script>
